package com.xxh.search.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxh.dataaccess.dto.MovieDto;
import com.xxh.dataaccess.entity.User;
import com.xxh.dataaccess.entity.Video;

import java.util.List;

public interface SearchService {

    int initMovieEsData(List<MovieDto> records);

    int initVideoEsDate(List<Video> records);

    int initUserEsData(List<User>records);

    IPage search(Page page,String keyword,String type);


    int SaveVideotoEs(Video v);

    int creatOrUpdateIndex(String bv);
}
